package jsonobj;

import com.google.gson.Gson;

public class RegisterInfo implements JSonObj{
	public String user;
	public String pass;
	public String email;
	
	public RegisterInfo(){}
	
	public RegisterInfo(String u, String p, String e)
	{
		this.user = u;
		this.pass = p;
		this.email = e;
	}
	
	public String toString()
	{
		return CLI_REGISTER+"|"+ new Gson().toJson(this);
	}
	
	public static RegisterInfo fromJSon(String json)
	{
		return new Gson().fromJson(json,RegisterInfo.class);
	}
}
